package main

import (
	"fmt"
	"reflect"
)

func main() {
	s1 := []int{1, 2, 3, 4}
	s2 := s1[:]
	fmt.Println(reflect.TypeOf(s1), s1, "s2", s2, reflect.TypeOf(s2))

	rlength := -1
	wordToLearn := []int{1, 2, 3, 4}
	if rlength >= len(wordToLearn) {
		rlength = len(wordToLearn)
	}

	fmt.Println("s3......", len(wordToLearn), wordToLearn[0:rlength])
}
